package com.tedu.day06_mybatis.mapper;

import com.tedu.day06_mybatis.pojo.Comment;
import com.tedu.day06_mybatis.pojo.CommentVO1;
import com.tedu.day06_mybatis.pojo.CommentVO2;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ICommentMapper {

    public int insertComment(Comment comment);

    public int deleteCommentById(int id);

    public int updateCommentById(Comment comment);


    public CommentVO1 selectCommentById(int id);


    public List<CommentVO2> selectCommentByUserId(int id);
}
